import {createRouter, createWebHashHistory} from 'vue-router'
import Index from '@/views/lcd/index.vue'
import Layout from '@/views/lcd/online/index.vue'
import List from '@/views/lcd/online/list/index.vue'
import Design from '@/views/lcd/online/design/index.vue'
import Refresh from '@/views/lcd/online/refresh/index.vue'
import Database from '@/views/lcd/online/database/index.vue'
const routes = [
    {path: '', component: Index},
    {path: '/lcd', component: Layout, children: [
            {path: '', component: List},
            {path: 'design', component: Design},
            {path: 'refresh', component: Refresh},
            {path: 'database', component: Database},
        ]
    },
]

const router = createRouter({
    routes, // `routes: routes` 的缩写
    history: createWebHashHistory(),
})

export default router
